import request from '../utils/request.js'

export function getTeachingResearchSearch(params) {
  return request({
    url: `/teachingResearch/search`,
    method: 'post',
    data: params
  })
}

export function getTeachingResearchDetail(params) {
  return request({
    url: `/teachingResearch/getTeachingResearchDetail`,
    method: 'get',
    data: params
  })
}

export function getFindByKeyword(params) {
  return request({
    url: `/teachingResearch/findByKeyword`,
    method: 'get',
    data: params
  })
}
export function teachingResearchCollect(params) {
  return request({
    url: `/teachingResearch/collect`,
    method: 'post',
    data: params,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

export function collectTeachingResearch(params) {
  return request({
    url: `/teachingResearch/collectTeachingResearch`,
    method: 'post',
    data: params
  })
}

export function getMyTeachingResearch(params) {
  return request({
    url: `/teachingResearch/getMyTeachingResearch`,
    method: 'post',
    data: params
  })
}

export function getEvaluationIPage(params) {
  return request({
    url: `/teachingResearch/evaluationIPage`,
    method: 'post',
    data: params
  })
}
export function teachingResearchEnroll(params) {
  return request({
    url: `/teachingResearch/enroll`,
    method: 'post',
    data: params,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}

export function getTeachingResearchReport(params) {
  return request({
    url: `/teachingResearch/getTeachingResearchReport`,
    method: 'get',
    data: params,
    header: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}